import request from '@/utils/request'

export function startAttention(data) {
  return request({
    url: '/task/start',
    method: 'post',
    data
  })
}


export function stop(data) {
  return request({
    url: '/task/stop',
    method: 'post',
    data
  })
}

export function getList(data) {
  return request({
    url: '/attention/list',
    method: 'post',
    data
  })
}

/**
 * 任务中心
 * @param data
 * @returns {AxiosPromise}
 */
export function getTaskProcessMessage(data) {
  return request({
    url: '/task/getTaskProcessMessage',
    method: 'post',
    data
  })
}
